package com.blue.http.message;

import java.util.Map;

/**
 * HTTP 请求响应
 * 
 * @author zhengj
 * @since 1.0 2017年3月1日
 */
public interface HttpResponse
{
	String DEFAULT_CONTENT_TYPE = "text/html; charset=utf-8;";

	String getResult();

	void setResult(String result);

	Exception getException();

	void setException(Exception exception);

	int getCode();

	void setCode(int code);

	String getMsg();

	void setMsg(String msg);

	String getExtmsg();

	void setExtmsg(String extmsg);

	void setView(View view);

	View getView();

	boolean isView();

	Map<String, Object> param();

	void setDownload(Download download);

	Download getDownload();

	void setCookie(String name, String value);

	void removeCookie(String name);

	Map<String, String> getCookie();

	String getContentType();

	void setContentType(String contentType);

}
